home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / Frontier / Frontier SDK 2.1.sit / Frontier SDK 2.1 / Toolkits / IAC Tools / iacnewsystemverb.c < prev    next >
MacBinary  |  1993-05-20  |  1.6 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu May 20 00:46:46 1993, modified Thu May 20 00:46:46 1993, creator Think C, type ASCII, 997 bytes "iacnewsystemverb.c" , at 0x465 402 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 12 69 61 63 6e 65 77 | 73 79 73 74 65 6d 76 65 |..iacnew|systemve|
|00000010| 72 62 2e 63 00 00 00 00 | 00 00 00 00 00 00 00 00 |rb.c....|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 03 e5 00 | 00 01 92 a8 20 bd b6 a8 |........|.... ...|
|00000060| 20 bd b6 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | .......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 20 85 00 00 |........|.... ...|
|00000080| 2f 2a a9 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |/*. Copy|right 19|
|00000090| 38 38 2d 31 39 39 32 20 | 55 73 65 72 4c 61 6e 64 |88-1992 |UserLand|
|000000a0| 20 53 6f 66 74 77 61 72 | 65 2c 20 49 6e 63 2e 20 | Softwar|e, Inc. |
|000000b0| 20 41 6c 6c 20 52 69 67 | 68 74 73 20 52 65 73 65 | All Rig|hts Rese|
|000000c0| 72 76 65 64 2e 2a 2f 0d | 0d 23 69 6e 63 6c 75 64 |rved.*/.|.#includ|
|000000d0| 65 20 22 69 61 63 69 6e | 74 65 72 6e 61 6c 2e 68 |e "iacin|ternal.h|
|000000e0| 22 0d 0d 0d 2f 2a 0d 38 | 2f 32 34 2f 39 32 20 44 |".../*.8|/24/92 D|
|000000f0| 57 3a 20 54 68 69 73 20 | 69 73 20 74 68 65 20 6f |W: This |is the o|
|00000100| 6e 6c 79 20 73 79 73 74 | 65 6d 20 65 76 65 6e 74 |nly syst|em event|
|00000110| 20 76 65 72 62 20 74 68 | 61 74 20 55 43 4d 44 73 | verb th|at UCMDs|
|00000120| 20 6e 65 65 64 20 61 73 | 20 6f 66 20 46 72 6f 6e | need as| of Fron|
|00000130| 74 69 65 72 0d 53 44 4b | 20 32 2e 30 2e 20 57 65 |tier.SDK| 2.0. We|
|00000140| 20 69 6e 63 6c 75 64 65 | 64 20 74 68 69 73 20 69 | include|d this i|
|00000150| 6e 20 61 20 73 65 70 61 | 72 61 74 65 20 66 69 6c |n a sepa|rate fil|
|00000160| 65 20 73 6f 20 74 68 61 | 74 20 55 43 4d 44 73 20 |e so tha|t UCMDs |
|00000170| 64 6f 6e 27 74 20 68 61 | 76 65 20 74 6f 20 68 61 |don't ha|ve to ha|
|00000180| 76 65 20 61 6c 6c 0d 74 | 68 65 20 6f 76 65 72 68 |ve all.t|he overh|
|00000190| 65 61 64 20 6f 66 20 61 | 6c 6c 20 74 68 65 20 72 |ead of a|ll the r|
|000001a0| 6f 75 74 69 6e 65 73 20 | 69 6e 20 69 61 63 73 79 |outines |in iacsy|
|000001b0| 73 65 76 65 6e 74 73 2e | 63 2e 0d 2a 2f 0d 0d 0d |sevents.|c..*/...|
|000001c0| 42 6f 6f 6c 65 61 6e 20 | 49 41 43 6e 65 77 73 79 |Boolean |IACnewsy|
|000001d0| 73 74 65 6d 76 65 72 62 | 20 28 4f 53 54 79 70 65 |stemverb| (OSType|
|000001e0| 20 76 63 6c 61 73 73 2c | 20 4f 53 54 79 70 65 20 | vclass,| OSType |
|000001f0| 76 74 6f 6b 65 6e 2c 20 | 41 70 70 6c 65 45 76 65 |vtoken, |AppleEve|
|00000200| 6e 74 20 2a 65 76 65 6e | 74 29 20 7b 0d 0d 09 2f |nt *even|t) {.../|
|00000210| 2a 0d 09 36 2f 32 39 2f | 39 32 20 44 57 3a 20 73 |*..6/29/|92 DW: s|
|00000220| 70 65 63 69 61 6c 20 65 | 6e 74 72 79 20 70 6f 69 |pecial e|ntry poi|
|00000230| 6e 74 20 66 6f 72 20 6d | 65 73 73 61 67 65 73 20 |nt for m|essages |
|00000240| 73 65 6e 74 20 74 6f 20 | 73 79 73 74 65 6d 20 65 |sent to |system e|
|00000250| 76 65 6e 74 20 68 61 6e | 64 6c 65 72 73 2e 0d 09 |vent han|dlers...|
|00000260| 0d 09 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |..implem|entation|
|00000270| 20 64 65 74 61 69 6c 3a | 20 74 68 69 73 20 69 73 | detail:| this is|
|00000280| 20 61 63 63 6f 6d 70 6c | 69 73 68 65 64 20 62 79 | accompl|ished by|
|00000290| 20 73 65 6e 64 69 6e 67 | 20 74 68 65 20 6d 65 73 | sending| the mes|
|000002a0| 73 61 67 65 20 74 6f 20 | 6f 75 72 73 65 6c 66 2e |sage to |ourself.|
|000002b0| 0d 09 2a 2f 0d 09 0d 09 | 41 45 41 64 64 72 65 73 |..*/....|AEAddres|
|000002c0| 73 44 65 73 63 20 61 64 | 72 3b 20 0d 09 4f 53 45 |sDesc ad|r; ..OSE|
|000002d0| 72 72 20 65 72 72 63 6f | 64 65 3b 0d 09 0d 09 50 |rr errco|de;....P|
|000002e0| 72 6f 63 65 73 73 53 65 | 72 69 61 6c 4e 75 6d 62 |rocessSe|rialNumb|
|000002f0| 65 72 20 70 73 6e 3b 0d | 0d 09 70 73 6e 2e 68 69 |er psn;.|..psn.hi|
|00000300| 67 68 4c 6f 6e 67 4f 66 | 50 53 4e 20 3d 20 30 3b |ghLongOf|PSN = 0;|
|00000310| 0d 0d 09 70 73 6e 2e 6c | 6f 77 4c 6f 6e 67 4f 66 |...psn.l|owLongOf|
|00000320| 50 53 4e 20 3d 20 6b 43 | 75 72 72 65 6e 74 50 72 |PSN = kC|urrentPr|
|00000330| 6f 63 65 73 73 3b 0d 0d | 09 41 45 43 72 65 61 74 |ocess;..|.AECreat|
|00000340| 65 44 65 73 63 20 28 74 | 79 70 65 50 72 6f 63 65 |eDesc (t|ypeProce|
|00000350| 73 73 53 65 72 69 61 6c | 4e 75 6d 62 65 72 2c 20 |ssSerial|Number, |
|00000360| 28 50 74 72 29 20 26 70 | 73 6e 2c 20 73 69 7a 65 |(Ptr) &p|sn, size|
|00000370| 6f 66 20 28 70 73 6e 29 | 2c 20 26 61 64 72 29 3b |of (psn)|, &adr);|
|00000380| 0d 09 0d 09 65 72 72 63 | 6f 64 65 20 3d 20 41 45 |....errc|ode = AE|
|00000390| 43 72 65 61 74 65 41 70 | 70 6c 65 45 76 65 6e 74 |CreateAp|pleEvent|
|000003a0| 20 28 0d 09 09 0d 09 09 | 76 63 6c 61 73 73 2c 20 | (......|vclass, |
|000003b0| 76 74 6f 6b 65 6e 2c 20 | 26 61 64 72 2c 20 6b 41 |vtoken, |&adr, kA|
|000003c0| 75 74 6f 47 65 6e 65 72 | 61 74 65 52 65 74 75 72 |utoGener|ateRetur|
|000003d0| 6e 49 44 2c 20 6b 41 6e | 79 54 72 61 6e 73 61 63 |nID, kAn|yTransac|
|000003e0| 74 69 6f 6e 49 44 2c 20 | 65 76 65 6e 74 29 3b 0d |tionID, |event);.|
|000003f0| 09 0d 09 41 45 44 69 73 | 70 6f 73 65 44 65 73 63 |...AEDis|poseDesc|
|00000400| 20 28 26 61 64 72 29 3b | 0d 0d 09 49 41 43 67 6c | (&adr);|...IACgl|
|00000410| 6f 62 61 6c 73 2e 65 72 | 72 6f 72 63 6f 64 65 20 |obals.er|rorcode |
|00000420| 3d 20 65 72 72 63 6f 64 | 65 3b 0d 09 0d 09 72 65 |= errcod|e;....re|
|00000430| 74 75 72 6e 20 28 65 72 | 72 63 6f 64 65 20 3d 3d |turn (er|rcode ==|
|00000440| 20 6e 6f 45 72 72 29 3b | 0d 09 7d 20 2f 2a 49 41 | noErr);|..} /*IA|
|00000450| 43 6e 65 77 73 79 73 74 | 65 6d 76 65 72 62 2a 2f |Cnewsyst|emverb*/|
|00000460| 0d 09 0d 09 0d 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000480| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 46 |.......L|...L...F|
|00000490| 00 00 00 14 00 00 00 08 | 00 3e 00 0e 00 fa 01 a2 |........|.>......|
|000004a0| 00 0a ff fd ff ff 00 00 | 00 01 21 00 00 00 00 00 |........|..!.....|
|000004b0| 12 69 61 63 6e 65 77 73 | 79 73 74 65 6d 76 65 72 |.iacnews|ystemver|
|000004c0| 62 2e 63 65 02 00 00 00 | 50 61 72 74 53 49 54 78 |b.ce....|PartSITx|
|000004d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 a9 81 44 d5 00 00 | 00 00 00 00 01 92 18 6a |....D...|.......j|
|00000500| 00 02 ff f6 00 04 00 06 | 00 14 02 04 80 00 00 00 |........|........|
|00000510| 00 00 2c 45 00 00 18 6a | 00 02 ff f6 00 04 00 06 |..,E...j|........|
|00000520| 00 14 02 04 80 00 00 00 | 00 00 2c 46 00 00 18 6a |........|..,F...j|
|00000530| 00 02 ff f6 00 04 00 06 | 00 14 02 04 80 00 00 00 |........|........|
|00000540| 00 00 2c 47 00 00 18 6a | 00 02 ff f8 00 08 00 04 |..,G...j|........|
|00000550| 00 c8 02 0f 80 00 00 00 | 00 00 0b ef 00 00 0c b2 |........|........|
|00000560| ff ff ff ff ff fe 00 00 | ff f8 ff d3 00 04 00 2d |........|.......-|
|00000570| 0a 0f 80 00 00 00 00 00 | 2d 1f 00 00 0c b2 ff ff |........|-.......|
|00000580| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 06 | 00 04 00 74 00 08 01 d6 |........|...t....|
|000005b0| 02 40 00 74 00 08 01 d6 | 02 40 a8 20 77 66 00 00 |.@.t....|.@. wf..|
|000005c0| 01 40 00 00 01 40 00 00 | 00 00 01 00 00 00 01 00 |.@...@..|........|
|000005d0| 00 00 01 4c 00 00 00 4c | 00 00 00 46 00 eb 4e cc |...L...L|...F..N.|
|000005e0| 17 e0 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000005f0| 00 0a 03 ed 00 00 00 00 | 00 00 00 eb 4c 44 13 43 |........|....LD.C|
|00000600| 72 65 61 74 65 64 20 62 | 79 20 43 4d 61 73 74 65 |reated b|y CMaste|
|00000610| 72 aa 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |r.......|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+